﻿/************************************************************************************
 *      Copyright (C) 2015 yuwei,All Rights Reserved
 *      File:
 *                Person.cs
 *      Description:
 *              主程序入口，单利模式项目
 *      Author:
 *                Yangxianwen
 *                
 *                
 *      Finish DateTime:
 *                2017年07月24日
 *      History:
 ***********************************************************************************/


using System;
using System.Threading;

namespace Singleton
{
    class Program
    {
        static void Main(string[] args)
        {
            {
                for (int i = 0; i < 5; i++)
                {
                    //GetPerson();
                    Thread thread = new Thread(GetPerson);
                    Thread.Sleep(100);
                    thread.Start();
                }
            }


            Console.WriteLine("Hello World!");
            Console.Read();
        }

        public static void GetPerson()
        {
            Person.GetInstance();
        }
    }

}
